﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SmartSpace.OA
{
    public interface ILeaveService
    {
        ServiceResult Save(LeaveRequest request);

        ServiceResult Delete(Guid requestId);

        SingleResult<LeaveRequest> Get(Guid requestId);

        PagedResult<LeaveRequest> GetRequests(string creator, int start, int limit);
        PagedResult<LeaveRequest> GetRequests(string creator, string status, int start, int limit);

        #region leavetype
        ServiceResult SaveLeaveType(LeaveType type);
        List<LeaveType> GetLeaveTypes();
        LeaveType GetLeaveType(string code);
        #endregion
    }
}
